﻿<!--#include file="include/config.asp"-->
<!--#include file="include/conn_f.asp"-->
<!--#include file="top.asp"-->
<!--#include file="left.asp"-->
<center>
    <br />
    <br />
    <font color='red' size="3">升级VIP需要2000积分</font><br />
    <br />
    如果您的积分已经达到了2000积分,可以升级为VIP.<br />
    VIP客户可以得到VIP价格,一般为非VIP价格的95折,部分商品可能不一样.<br />
    <br />
    <%
If Session("cust_id")="" Then
    Response.Write "请先登陆!<br />"
    Response.End
End If
If isvip=1 Then
    Response.Write "您已经是VIP,不需要升级!"
Else
    If buytimes>=2000 Then
        vip_confirm=request("vip_confirm")
        If vip_confirm="1" Then
            sql="update customer set vip=1 where cust_id="&Session("cust_id")
            conn.execute sql
            Response.Write "VIP升级成功!"
        Else
        Response.Write "<font color='green'>您积分可以升级VIP!"
    %>
    <form action="account_vip.asp" method="post">
    <input name="vip_confirm" value="1" type="hidden">
    <input type="submit" value="升级VIP">
    </form>
    <%	
        End If
    Else
        Response.Write "<font color='red'>您积分还不够!"
    End If
End If
    %>
</center>

<!--#include file="bottom.asp"-->
